package 第六周.homework;

public class pp8_6_2
{
    public static void main(String []args)
    {
        pp8_6_1 account = new pp8_6_1();
        //将账户信息录入。
        account.setAccount("honey",4556,65.65);
        account.setAccount("crys",7676,6786.56);
        account.setAccount("lucy",5757,98.9);
        System.out.println(account);

        //输出加利息后的钱。
        account.addmoney();

        if(account.ifvalidtrade("crys",7000))
            System.out.println("取款成功！");
        else
            System.out.println("操作有误！交易失败！");


    }
}
